{template nheader.html}
<link href="{THEME_PATH}admin/global/css/banner.css?t={time()}.{rand(10000,9999999)}" rel="stylesheet"  />
<link href="{THEME_PATH}admin/global/css/form_default.css?t={time()}.{rand(10000,9999999)}" rel="stylesheet"  />
<script src="{THEME_PATH}admin/global/scripts/banner.js?t={time()}.{rand(10000,9999999)}"></script>

<div class="page-bar">
    <div class="page-toolbar">
        <div class="btn-group pull-right">
            <a href="{dr_url('banner/add')}">{fc_lang('添加banner')}</a>
            <i class="fa fa-circle"></i>
        </div>
    </div>
</div>

<div class="portlet mylistbody">
    <div class="portlet-body">
        <div class="table-scrollable">

            <table class="mytable table table-striped table-bordered table-hover table-checkable dataTable">
                <thead>
                <tr>
                    <th >{fc_lang('编号')}</th>
                    <th width="8%">{fc_lang('缩略图')}</th>
                    <th >{fc_lang('名称')}</th>
                    <th >{fc_lang('所在栏目')}</th>
                    <th >{fc_lang('上下架')}</th>
                    <th >{fc_lang('序号')}</th>
                    <th >{fc_lang('生效日期')}</th>
                    <th >{fc_lang('客户端')}</th>
                    <th >{fc_lang('操作')}</th>
                </tr>
                </thead>
                <tbody>
                {loop $list $t}
                <tr>
                    <td>{$t.id}</td>
                    <td>
                        <img src="{if !empty($t.cover)}{$t.cover}{/if}" alt="" class="order-img-box" width="68">
                    </td>
                    <td>{$t.name}</td>
                    <td class="price-list">
                        {$t.part}
                    </td>
                    <td>
                        <div class="state">
                            <span>下架：</span>
                            <a class="state-check-box {if $t.is_ground}on{/if}" data="{$t.is_ground}" course_id ="{$t.id}"></a>
                        </div>
                    </td>
                    <td>{$t.sort}</td>
                    <!-- <td>{$t.name}</td> -->
                    <td >
                        <div class="classification">
                            {if $t.start_time!='0000-00-00'}
                                <span class="start_time">
                                    <span class="word">起始日期：</span>
                                    <span class="time">{$t.start_time}</span>
                                </span>
                            {/if}
                            {if $t.end_time!='0000-00-00'}
                                <span class="end_time">
                                    <span class="word">结束日期：</span>
                                    <span class="time">{$t.end_time}</span>
                                </span>
                            {/if}
                        </div>
                    </td>
                     <td>{$t.client}</td>
                    <td>
                        <!--<a>查看</a>-->
                        <a href="{dr_url('banner/edit',array('id'=>$t.id))}">编辑</a>
                        {if $t.is_ground == 0}
                            <a  href="javascript:;"  onclick="return dr_dialog_del('您确定要这样操作吗？','admin.php?c=banner&m=del&cid={$t.id}');">删除</a>
                        {/if}
                    </td>
                </tr>
                {/loop}
                </tbody>
            </table>
        </div>
    </div>
</div>
<div id="pages"><a>{fc_lang('共%s条', $total)}</a>{$pages}</div>

{template nfooter.html}